#include "MonkeyEventCallback.h"


MonkeyEventCallback::MonkeyEventCallback(std::string eventName, JSContext *context, jsval callback)
{
	_eventName = eventName;
	_context = context;
	_callback = callback;
}


//
// Get the name of the event we are associated with.
//
const std::string MonkeyEventCallback::getEventName()
{
	return _eventName;
}


//
// Get the Javascript context this event callback is for.
//
JSContext *MonkeyEventCallback::getContext()
{
	return _context;
}


//
// Get the javascript function we will call when firing this event callback.
//
jsval MonkeyEventCallback::getCallback()
{
	return _callback;
}

